package com.chixing.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author smith
 * @since 2025-05-27
 */
public class Camera implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 相机id
     */
    @TableId(value = "camera_id", type = IdType.AUTO)

    private Integer cameraId;

    /**
     * 相机名称
     */
    private String cameraName;

    /**
     * 种类id
     */
    private Integer typeId;

    /**
     * 相机图片
     */
    private String cameraImg;

    /**
     * 相机所属公司
     *
     */
    private String cameraCom;

    /**
     * 相机售卖价格
     */
    private BigDecimal cameraPrice;

    /**
     * 0：在售；1：售空（下架）
     */
    private String status;

    /**
     * 创建时间
     */
    private LocalDateTime cameraCreateTime;

    /**
     * 修改时间
     */
    private LocalDateTime cameraUpdateTime;

    public Integer getCameraId() {
        return cameraId;
    }

    public void setCameraId(Integer cameraId) {
        this.cameraId = cameraId;
    }
    public String getCameraName() {
        return cameraName;
    }

    public void setCameraName(String cameraName) {
        this.cameraName = cameraName;
    }
    public Integer getTypeId() {
        return typeId;
    }

    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }
    public String getCameraImg() {
        return cameraImg;
    }

    public void setCameraImg(String cameraImg) {
        this.cameraImg = cameraImg;
    }
    public String getCameraCom() {
        return cameraCom;
    }

    public void setCameraCom(String cameraCom) {
        this.cameraCom = cameraCom;
    }
    public BigDecimal getCameraPrice() {
        return cameraPrice;
    }

    public void setCameraPrice(BigDecimal cameraPrice) {
        this.cameraPrice = cameraPrice;
    }
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
    public LocalDateTime getCameraCreateTime() {
        return cameraCreateTime;
    }

    public void setCameraCreateTime(LocalDateTime cameraCreateTime) {
        this.cameraCreateTime = cameraCreateTime;
    }
    public LocalDateTime getCameraUpdateTime() {
        return cameraUpdateTime;
    }

    public void setCameraUpdateTime(LocalDateTime cameraUpdateTime) {
        this.cameraUpdateTime = cameraUpdateTime;
    }

    @Override
    public String toString() {
        return "Camera{" +
            "cameraId=" + cameraId +
            ", cameraName=" + cameraName +
            ", typeId=" + typeId +
            ", cameraImg=" + cameraImg +
            ", cameraCom=" + cameraCom +
            ", cameraPrice=" + cameraPrice +
            ", status=" + status +
            ", cameraCreateTime=" + cameraCreateTime +
            ", cameraUpdateTime=" + cameraUpdateTime +
        "}";
    }
}
